package com.start.cstarguardianadaptivelearningbackend.mapper;

import com.start.cstarguardianadaptivelearningbackend.entity.Subject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SubjectMapper {
    @Select("SELECT subject_id AS subjectId, subject_name AS subjectName, " +
            "education_stage AS educationStage, grade " +
            "FROM subjects")
    List<Subject> findAllSubjects();
}